package ai.cast.reconnaissance.api;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping(value = "/api/meta")
public class MetadataApi {

    @RequestMapping("/red")
    public Map<String, Object> redMetadata(@RequestParam(value = "simulationId") String simulationId) {
        return Map.of("red", "red", "simulationId", simulationId);
    }

    @RequestMapping("/global")
    public Map<String, Object> globalMetadata(@RequestParam(value = "simulationId") String simulationId) {
        return Map.of("global", "global", "simulationId", simulationId);
    }

    @RequestMapping("/task")
    public Map<String, Object> taskMetadata(@RequestParam(value = "simulationId") String simulationId) {
        return Map.of("task", "task", "simulationId", simulationId);
    }

    @RequestMapping("/blue")
    public Map<String, Object> blueMetadata(@RequestParam(value = "simulationId") String simulationId) {
        return Map.of("blue", "blue", "simulationId", simulationId);
    }

    @RequestMapping("/environment")
    public Map<String, Object> envMetadata(@RequestParam(value = "simulationId") String simulationId) {
        return Map.of("environment", "environment", "simulationId", simulationId);
    }

}
